package com.mobile.framework.dao.hibernate;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.mobile.framework.dao.BaseDAO;
import com.mobile.framework.util.PageList;

/**
 * 动态hibernate的DAO基类
 */
public class BaseDAOHibernateActive extends BaseDAOHibernate {

	protected final Log log = LogFactory.getLog(getClass().getName());

	protected String entityName = null;

	public void setClsStr(String cl){
		try{
			this.clazz = Class.forName(cl);
		}catch(Exception ex){
			ex.printStackTrace();
		}
	}

	public String getClsStr(){
		return clazz == null ? null : clazz.toString() ;
	}

	public BaseDAOHibernateActive() {

	}

}